const mongoose = require('mongoose')

const Orders = mongoose.model('Orders', new mongoose.Schema({
    orderNumber: {type: String},//订单号
    userName: {type: String},//用户名
    goodsList: {type: Array},//商品列表
    totalMoney: {type:Number},//总价
    state: {type:String}//订单状态
},{timestamps: true}))

module.exports = Orders